function [ang]=dms2deg(dms) % The following code converts an angle in degree:minute:second format % to degrees. % % See Problem 2.3 in Chapter 2 of the book % Aided Navigation: GPS and high rate sensors % Jay A. Farrell, 2008, Mc Graw-Hill % % This software is distibuted without a written or implied warranty. % The software is for educational purposes and is not intended for % use in applications. Adaptation for applications is at the % risk of the user/developer. % ang(:,1) = dms(:,1)+dms(:,2)/60.0+dms(:,3)/3600.0;